/**   
* @Title: UserRepositoryTestCase.java
* @Package org.xaoyaoyao.cloud.test
* @Description: TODO
* @author xaoyaoyao
* @date Feb 13, 2019 9:03:43 AM
* @version V1.0   
*/
package org.xaoyaoyao.cloud.test;

import java.util.List;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.xaoyaoyao.cloud.Application;
import org.xaoyaoyao.cloud.test.entity.User;
import org.xaoyaoyao.cloud.test.repository.UserRepository;

/**
 * @ClassName: UserRepositoryTestCase
 * @Description: TODO
 * @author xaoyaoyao
 * @date Feb 13, 2019 9:03:43 AM
 * 
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class UserRepositoryTestCase {

	@Autowired
	private UserRepository userRepository;

	@Test
	public void testFindAll() {
		List<User> users = userRepository.findAll();
		Assert.assertNotNull(users);
	}

}
